/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package photoshare.dto;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author PhotoShare
 */
public class CommentDTO implements Serializable {

    private Integer commentId;
    private String title;
    private String content;
    private String dateCreate;

    public CommentDTO() {
    }

    public CommentDTO(Integer commentId) {
        this.commentId = commentId;
    }

    public CommentDTO(Integer commentId, String title, String content, String dateCreate) {
        this.commentId = commentId;
        this.title = title;
        this.content = content;
        this.dateCreate = dateCreate;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDateCreate() {
        return dateCreate;
    }

    public void setDateCreate(String dateCreate) {
        this.dateCreate = dateCreate;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (commentId != null ? commentId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CommentDTO)) {
            return false;
        }
        CommentDTO other = (CommentDTO) object;
        if ((this.commentId == null && other.commentId != null) || (this.commentId != null && !this.commentId.equals(other.commentId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "dto.Comments[commentId=" + commentId + "]";
    }
}
